package com.car.loan.project.xr.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 贷款对象 xr_loan
 *
 * @author ruoyi
 * @date 2019-11-03
 */
@TableName("xr_loan")
@Data
public class Loan {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.INPUT)
    private Long id;

    private Long customerId;

    /**
     * 业务编号
     */
    @ApiModelProperty("业务编号")
    private String businessNo;

    /**
     * 当前状态
     */
    @ApiModelProperty("当前状态")
    private String status;

    @ApiModelProperty("0待提交，1审批，2正常还款，3逾期还款，4中止，5拒绝，6结清")
    private Long businessStatus;

    /**
     * 还款状态  0=未还款  10=已还款
     */
    @ApiModelProperty("还款状态  0=未还款  10=已还款 ")
    private Integer repayStatus;

    /**
     * 中止状态 5=已终止
     */
    @ApiModelProperty("中止状态 5=已终止")
    private Integer termination;

    private Long deptId;

    private Long adminId;

    private Long bankId;

    private Long bankSchemeId;

    /**
     * 汽车经销商
     */
    @ApiModelProperty("汽车经销商")
    private Long dealerId;

    private Long carId;

    /**
     * 评估车辆
     */
    @ApiModelProperty("评估车辆id")
    private Long vehicleId;

    /**
     * 加签审批人
     */
    @ApiModelProperty("加签审批人")
    private Long secondAuditId;

    /**
     * 1=pc 2=mobile 3=安卓
     */
    @ApiModelProperty("1=pc 2=mobile 3=安卓")
    private Integer fromBy;

    private Long creatorId;

    private LocalDateTime createTime;

    /**
     * 最后操作者Id
     */
    @ApiModelProperty("最后操作者Id")
    private Long modifyId;

    /**
     * 最后操作者时间
     */
    @ApiModelProperty("最后操作者时间")
    private LocalDateTime modifyTime;

    @ApiModelProperty("1=正常 2=删除")
    private Integer deleted;

    @ApiModelProperty("删除时间")
    private LocalDateTime deletedTime;

    @ApiModelProperty("删除id")
    private Long deletedId;
}
